package a.jframe;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class Commands extends BASEFRAME {

	public Commands(){
		jframe=1;
	}
	void createpanel(){
		JPanel login= new JPanel();
		JLabel a=new JLabel("Nazwa polecenia :");
		JLabel a1=new JLabel("Polecenie :");
		JLabel a2=new JLabel("Lista polecen:");
		JTextField aa=new JTextField();
		JTextField aa1=new JTextField();
		JTextArea aa2=new JTextArea();
		JButton save=new JButton("Save");
		aa2.setColumns(100);aa2.setRows(500);
		GridLayout gl=new GridLayout(0,2);
		GridLayout g2=new GridLayout(1,0);
		
		String	listData[] =
			{
				"Item 1",
				"Item 2",
				"Item 3",
				"Item 4"
			};
			listbox = new JList( listData );
		
		aa.setPreferredSize(new Dimension(80,20));
		aa1.setPreferredSize(new Dimension(80,20));
		
		JPanel pane = new JPanel(gl);
		
		pane.setSize(100,300);
		pane.add(a, gl);pane.add(aa, gl);
		pane.add(a1, gl);pane.add(aa1, gl);
		pane.add(aa2, g2);pane.add( listbox,g2);pane.add(save,g2);

		getContentPane().add(pane);
	}
	
}
